package com.atguigu.gmall.item.client;


import com.atguigu.gmall.item.client.impl.ItemDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name = "service-item",fallback = ItemDegradeFeignClient.class)
public interface ItemFeignClient {

    //查询汇总数据
    @GetMapping("/api/item/{skuId}")
    public Map getItem(@PathVariable(name = "skuId") Long skuId);
}
